/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseURL: 域名地址
 * imgBaseUrl: 图片所在域名地址
 *
 */

let URL = {};
let MAP_SOURCE;
// development 开发环境
if (process.env.NODE_ENV === 'development') {
  // URL.baseURL = 'http://192.168.199.223:61254/';

  // 本地端口
  // URL.baseURL = 'http://localhost:52717/';
  // URL.onlineUserSignalR = 'http://localhost:52717/';
  // 正式端口
  URL.baseURL = 'http://172.16.2.168/';
  URL.onlineUserSignalR = 'http://172.16.2.168/';
  URL.backlogCarHubSignalR = 'http://192.168.199.62:10120/';
  // 正式端口2
  // URL.baseURL = 'http://112.16.159.118/';
  // URL.onlineUserSignalR = 'http://112.16.159.118/';
  // 个别不同端口
  // URL.baseURL = 'http://localhost:53039/';
  // URL.onlineUserSignalR = 'http://localhost:53039/';

  URL.attachmentBaseURL = 'http://192.168.199.62:10001/api/filedownload?relativePath=';
  URL.backlogCountSignalR = 'http://localhost:10110/';
  MAP_SOURCE = 'nb2000';
  URL.mapURL = 'http://192.168.199.62:9999/NBMap/MapServer/tile/{z}/{y}/{x}';
  // // 'gaode';
} else {
  URL.baseURL = window.config.URL.baseURL;
  URL.attachmentBaseURL = window.config.URL.attachmentBaseURL;
  URL.backlogCountSignalR = window.config.URL.backlogCountSignalR;
  URL.onlineUserSignalR = window.config.URL.onlineUserSignalR;
  URL.backlogCarHubSignalR = window.config.URL.backlogCarHubSignalR;
  MAP_SOURCE = window.config.baseMap;
  URL.mapURL = window.config.URL.mapURL;
}

export {
  URL,
  MAP_SOURCE
};
